import type { RoboRequest } from '@robojs/server'; /** * Leaderboard Retrieval Endpoint * * Provides paginated access to guild leaderboards. * * **WARNING: This endpoint is currently unauthenticated.** * Note that the leaderboard.public config flag is NOT enforced by this endpoint. * API consumers must check the config and implement access control based on * config.leaderboard.public setting. * * **Performance Notes:** * - First 10 pages (top 100 users) are served from cache (<10ms) * - Pages beyond cache trigger full dataset query (slower but acceptable) * * **Query Parameters:** * - page (optional): Page number (1-indexed, default: 1) * - limit (optional): Entries per page (default: 10, max: 100) * - offset (optional): Direct offset (alternative to page, 0-indexed) * * **Route:** * - GET /api/xp/leaderboard/:guildId - Get paginated leaderboard */ declare const _default: (request: RoboRequest) => Promise; export default _default;